<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:p="http://primefaces.org/ui"
	xmlns:ui="http://java.sun.com/jsf/facelets">

<h:body>

	<ui:composition template="masterpage.xhtml">

		<ui:define name="cont">

			<h:form class="form-horizontal" action="#"
				style="border-radius: 0px;" acceptcharset="ISO-8859-1">

				<div class="form-group">
					<h:outputLabel id="outSaldo" value="Saldo R$"
						styleClass="col-sm-3 control-label" />
					<div class="col-sm-6">
						<h:inputText id="inptSaldo" styleClass="form-control money"
							value="#{novaContaBean.conta.saldo}" >
							<f:convertNumber pattern="#,###,##0.00" />
						</h:inputText>
						<div class="checkbox">
							<label> <h:selectBooleanCheckbox id="chkNegativo"
									value="#{novaContaBean.negativo}" /> Negativo
							</label>
						</div>

					</div>
				</div>

				<div class="form-group">
					<h:outputLabel id="outTitulo" value="Título"
						styleClass="col-sm-3 control-label" />
					<div class="col-sm-6">
						<h:inputText id="inptTitulo" styleClass="form-control"
							value="#{novaContaBean.conta.titulo}" required="true" />
							<h:message for="inptTitulo" class="mensagens"/>
					</div>
				</div>

				<div class="form-group" style="margin-left:140px;">
					<div class="col-sm-offset-2 col-sm-10">
						<h:commandButton id="btnSalvar"
							action="#{novaContaBean.cadastrarConta}" value="Salvar"
							type="submit" styleClass="btn btn-primary" />
					</div>
				</div>
			</h:form>
		</ui:define>
		<ui:param name="titulo" value="Conta" />
		<ui:param name="tituloPagina" value="Nova Conta" />
	</ui:composition>

</h:body>
</html>